package com.hengpeng.itfin.job;

import java.util.Date;

import com.hengpeng.common.cis.ComponentContextLoader;
import com.hengpeng.common.scheduling.AbstractJob;
import com.hengpeng.common.scheduling.ScheduleConfig;
import com.hengpeng.common.util.DateTimeUtil;
import com.hengpeng.itfin.service.ServiceFactory;

/**
 * <pre>
 * 取现交易查询
 * </pre>
 * 
 * @author weiyuan
 * @version 1.0, 2015年6月7日
 */
public class DrawQueryJob extends AbstractJob {
    @Override
    public void exec(boolean isTimeout, ScheduleConfig config) {
        log.info("取现交易状态查询定时作业开始,时间：" + DateTimeUtil.formatToStr(new Date(), DateTimeUtil.DATE_FORMAT_YMDHMS));
        ServiceFactory serviceFactory = ComponentContextLoader.getBean(ServiceFactory.class);
        serviceFactory.getPaymentService().drawQuery();
        log.info("取现交易状态查询定时作业结束,时间：" + DateTimeUtil.formatToStr(new Date(), DateTimeUtil.DATE_FORMAT_YMDHMS));
    }

    public static void main(String[] args) {
        DrawQueryJob job = new DrawQueryJob();
        job.exec(false, null);
    }
}
